PROJECT(krautchanparser)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR}
					${CMAKE_SOURCE_DIR}/boardparsers)

SET(krautchanparser_sources
	krautchanparser.cpp)

SET(krautchanparser_headers
	krautchanparser.h)

QT4_WRAP_CPP(krautchanparser_moc ${krautchanparser_headers})

ADD_LIBRARY(krautchanparser MODULE ${krautchanparser_sources} ${krautchanparser_moc})
TARGET_LINK_LIBRARIES(krautchanparser ${QT_LIBRARIES} ${spelling_libs} wm)
SET_TARGET_PROPERTIES(krautchanparser PROPERTIES LIBRARY_OUTPUT_DIRECTORY ..)

INSTALL(TARGETS krautchanparser LIBRARY DESTINATION ${LIBDIR}/plugins/boardparsers)

